package com.bd.scm.dao.mapper.schedule;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bd.scm.domain.dto.schedule.ScheduleGroupEmployeeDto;
import com.bd.scm.domain.dto.schedule.ScheduleGroupScheduleSearchDto;
import com.bd.scm.domain.models.schedule.ScheduleGroupEmployee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yufc
 */
public interface ScheduleGroupEmployeeMapper extends BaseMapper<ScheduleGroupEmployee> {


    void saveBatchEmployeeList(@Param("employeeJson") String employeeJson);

    /**
     * 获取班组员工列表
     * @param groupId
     * @return
     */
    List<ScheduleGroupEmployeeDto> getGroupEmployeeList(@Param("groupId") int groupId);

    /**
     * 删除班组排班员工明细
     * @param detail
     * @return
     */
    int deleteGroupScheduleDetail(@Param("detail") ScheduleGroupScheduleSearchDto detail, @Param("ip") String ip, @Param("userSerial") Long userSerial);
}